<h1>Listing stop_instances</h1>

<table>
  <tr>
    <th>Stop number</th>
    <th>Visited</th>
    <th>Timeframe low</th>
    <th>Timeframe high</th>
    <th>Location</th>
    <th>Notes</th>
    <th>Route instance</th>
    <th>Stop</th>
  </tr>

<% @stop_instances.each do |stop_instance| %>
  <tr>
    <td><%=h stop_instance.stop_number %></td>
    <td><%=h stop_instance.visited %></td>
    <td><%=h stop_instance.timeframe_low %></td>
    <td><%=h stop_instance.timeframe_high %></td>
    <td><%=h stop_instance.location.name %></td>
    <td><%=h stop_instance.notes %></td>
    <td><%=h stop_instance.route_instance_id %></td>
    <td><%=h stop_instance.stop_id %></td>
    <td><%= link_to 'Show', stop_instance %></td>
    <td><%= link_to 'Edit', edit_stop_instance_path(stop_instance) %></td>
    <td><%= link_to 'Destroy', stop_instance, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New stop_instance', new_stop_instance_path %>